package item.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import item.bean.CarSort;
import item.dao.CarsortDao;
import item.service.ICarSortService;
import item.util.Page;
@Service
public class CarSortService implements ICarSortService{
	@Autowired
	CarsortDao dao;
	public List<CarSort> getCarSort(CarSort carsort, Page page) {
		return dao.getCarSort(carsort, page);
	}
	public int getCount(CarSort carsort) {
		return dao.getCount(carsort);
	}
	public CarSort getCarSortById(int id) {
		return dao.getCarSortById(id);
	}
	public int editCarSort(CarSort carsort) {
		return dao.editCarSort(carsort);
	}
	public int deleteCarSort(int id) {
		return dao.deleteCarSort(id);
	}
	public int addCarSortMes(CarSort carsort) {
		return dao.addCarSortMes(carsort);
	}


}
